
package zuoye2;
import java.util.Scanner;


public class Zy2 {
    public static void main(String[] args) {
        {

        Scanner input=new Scanner(System.in);
        System.out.println("请输入一个数:");
        int a=input.nextInt();
        int c=1;
        int b;
        for(int i=0;c!=0;i++)
        {
            b=a%10;
            c=a/10;
            a=c;
            System.out.print(b);
        }
        System.out.println();
    }
    }
}
